/**
 * 获取地址栏参数
 * @author xxt
 * @param {String} key 
 * @returns String
 */

function getParams(key){    
       let paramsObj = window.location.href.split('?')[1]
       paramsObj = decodeURI(paramsObj)
       let arr = paramsObj.split("&");
       for (let i=0;i<arr.length;i++) 
       {
       		let tempArr = arr[i].split("=");
       		if(tempArr[0] == key) return tempArr[1]
       }
}